package com.scm.biz.service;

import java.util.List;

import org.springframework.web.multipart.MultipartHttpServletRequest;

import com.scm.biz.bean.OrderPattern;
import com.scm.biz.dto.OrderPatternDto;
import com.scm.biz.result.OrderPatternResult;
import com.scm.core.bean.exp.UfdmException;

public interface OrderPatternService {
	public void insert(OrderPatternDto orderPatternDto) throws UfdmException;
	public void submitVerify(Long businessId);
	public void update(OrderPattern orderPattern) throws UfdmException;
	public List<OrderPatternResult> selectListByOrderId(Long orderId);
	
	/**
	 * 根据ID，查询款式明细
	 * @param id
	 * @return
	 */
	OrderPatternResult selectById(Long id);
	
	/**
	 * 根据ID，查询款式数据
	 * @param id
	 * @return
	 */
	OrderPatternResult getById(Long id);
	
	/**
	 * 修改设计稿
	 * @param orderPattern
	 */
	void modify(OrderPattern orderPattern,MultipartHttpServletRequest req) throws Exception;
	
	/**
	 * 保存设计稿
	 * @param pattern
	 * @param req
	 */
	void save(OrderPattern pattern,MultipartHttpServletRequest req)throws UfdmException;
}
